package ts.ms;

/**
 * @author HeXiangGuang
 * @create 2021-12-09 18:19
 */
public enum PhaseReportEnum {/*
    tt(1,DownloadFileTypeEnum.系统调研表.getValue()),
    tt1(2,DownloadFileTypeEnum.测评方案.getValue()),
    tt2(3,DownloadFileTypeEnum.现场测评记录.getValue()),
    tt3(4,DownloadFileTypeEnum.测评问题分析表.getValue()),
    tt4(5,DownloadFileTypeEnum.漏洞扫描问题表.getValue());
    tt5(6,DownloadFileTypeEnum.测评报告附录.getValue());
    tt6(7,DownloadFileTypeEnum.测评报告含附录.getValue());
    tt7(8,DownloadFileTypeEnum.测评报告不含附录.getValue());
    private Integer type;
    private String  value;

    PhaseReportEnum(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public static List<Map<String,Object>> getValList(Integer type){
        List<Map<String,Object>> list = new ArrayList<>();

        for (Integer integer = type; integer > 0; integer--)
        {
            for (PhaseReportEnum value : PhaseReportEnum.values())
            {
                Map<String,Object> map = new HashMap<>();
                        if (value.type==integer)
                        {
                        map.put("type",value.value);
                        list.add(map);
                         }
            }

        }

        return list;
    }*/
}

